# @Time    :2025/3/31 14:57
# @Time    :2025/3/31 14:35
class Daba():
    """爸爸类"""
    home = "earth"

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def eat(self):
        print(f"{self.name}在eatting....")


class Girl(Daba):
    """女儿类"""
    gender = "女"

    def dance(self):
        print(f"{self.name}女儿跳舞....")


class Son(Daba):
    """儿子类"""
    gender = "男"

    def run(self):
        print("儿子在跑步.......")
    def play(self):
        print("玩呀..Son..")

class kid(Girl, Son):
    """ 儿童 类"""

    def play(self):
        #先玩耍
        super().run()
        #再吃东西
        super().eat()
        #最后跳舞
        super().dance()

        print(super().home)


k1 = kid("小宝宝", 10)
print("小宝宝的性别是：", k1.gender)
#k1.play()  # 方法的重写 本类有，用自己的
print("住址：", k1.home)

b = Girl("安安", 12)
print("女儿的年龄是", b.age)
print("性别", b.gender)
print("--------")
k1.play()



# 魔法方法--调用顺序
print(kid.__mro__)